import request from '@/utils/request'

export default {
  apiTree(params) {
    return request({
      url: '/api/tree',
      method: 'get',
      params
    })
  },
  apiStore(data) {
    return request({
      url: '/api/store',
      method: 'post',
      data
    })
  },
  apiDelete(id) {
    return request({
      url: '/api/delete',
      method: 'post',
      data: { id }
    })
  }
}
